package com.sunwayworld.basemodule.rm.equipment.equiptborrow.resource.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sunwayworld.basemodule.rm.equipment.equiptborrow.resource.LimsEquiptBorrowResource;
import com.sunwayworld.basemodule.rm.equipment.equiptborrow.service.LimsEquiptBorrowService;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;

@LogModule("设备借用管理")
@RestController
@GikamBean
public class LimsEquiptBorrowResourceImpl implements LimsEquiptBorrowResource {

    @Autowired
    private LimsEquiptBorrowService limsEquiptBorrowService;

    @Override
    public LimsEquiptBorrowService getService() {
        return limsEquiptBorrowService;
    }

    @Log(value = "新增设备借用管理", type = LogType.INSERT)
    @Override
    @RequestMapping(method = RequestMethod.POST)
    public Long insert(RestJsonWrapperBean wrapper) {
        return getService().insert(wrapper);
    }

}
